package com.weighing.system.mapper.server;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.weighing.system.domain.server.WeighingDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WeighingDetailMapper extends BaseMapper<WeighingDetail> {

    /**
     * 根据工单号查询明细列表
     */
    List<WeighingDetail> selectByBillNo(@Param("billNo") String billNo);

    /**
     * 根据来源单号查询明细列表
     * @param billNo 来源单号
     * @return 明细列表
     */
    List<WeighingDetail> selectByFromBillNo(@Param("fromBillNo") String billNo);

}
